package com.hornsun.repository.mapper;

import com.hornsun.domain.dbo.OrderForm;
import com.hornsun.domain.dbo.OrderFormExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;
import org.springframework.stereotype.Component;

@Component
public interface OrderFormMapper {
    long countByExample(OrderFormExample example);

    int deleteByExample(OrderFormExample example);

    int deleteByPrimaryKey(String orderGuid);

    int insert(OrderForm record);

    int insertSelective(OrderForm record);

    List<OrderForm> selectByExampleWithRowbounds(OrderFormExample example, RowBounds rowBounds);

    List<OrderForm> selectByExample(OrderFormExample example);

    OrderForm selectByPrimaryKey(String orderGuid);

    int updateByExampleSelective(@Param("record") OrderForm record, @Param("example") OrderFormExample example);

    int updateByExample(@Param("record") OrderForm record, @Param("example") OrderFormExample example);

    int updateByPrimaryKeySelective(OrderForm record);

    int updateByPrimaryKey(OrderForm record);

    //修改订单状态
    void updateOrderStatus(@Param("orderGuid") String orderGuid,@Param("status") byte status);

    long getTodayOrder(String timeStr);
}